<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Language" content="zh">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta name="viewport" content="width=device-width; initial-scale=1.0">
<script>
function runscript(url) {
	var script = document.createElement('script');  
	script.setAttribute('src', url);
	document.getElementsByTagName('head')[0].appendChild(script);  
}
function getUrlParameter(name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)","i");
    var r = window.location.search.substr(1).match(reg);
    if (r!=null) 
        return decodeURIComponent(r[2]); 
    return null;
}

function  _wiwiz_setmac(m) {
	console.log("_wiwiz_setmac() mac = "+ m);
    location.href = rd + "&mac=" + m;
}

var rd = getUrlParameter("rd");

runscript("cgi-bin/mymac")
</script>
</head>
<body>

</body></html>